home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 85 / CDMM85_1.ISO / Monopoly Tycoon / MTycoonDemo.exe / data1.cab / scripts / SCENARIO5 / hub.lua next >
Encoding:
Text File  |  2001-10-24  |  3.6 KB  |  56 lines

  1. -------------------------------------------------------------------------------------------------
  2. -- INITIALISE_Level. Standard level event
  3. -------------------------------------------------------------------------------------------------
  4. function EVENTINITIALISE_Level()
  5.     C_RunScript("scripts\\maps\\developedmap.lua");
  6.     C_RunScript("scripts\\scenario5\\initialpref.lua");
  7.     Interface.CreatePrompt(ID_SINGLE_SCENARIO_DEMO_TITLE,ID_SINGLE_SCENARIO_DEMO_DESC, 1 ); 
  8.     RegisterPrompt(1, 1, 09, 30);
  9.     RegisterPrompt(2, 1, 11, 00);
  10.     RegisterPrompt(3, 1, 13, 10);
  11.     RegisterPrompt(4, 1, 16, 05);
  12.     RegisterPrompt(5, 1, 18, 15);
  13.     RegisterPrompt(6, 1, 23, 00);
  14.     RegisterPrompt(7, 2, 00, 00);
  15.     RegisterPrompt(8, 2, 02, 00);
  16.     RegisterPrompt(9, 2, 06, 00);
  17.     Game.Pause()
  18. end;
  19.  
  20.  
  21. function EVENT_CreatePrompt(a)
  22.   PromptHeading = ID_TIP_PROMPT_3_TITLE_1 + ((a-1)*2);
  23.     body = PromptHeading+1;
  24.  
  25.     if a == 1 then
  26.         Interface.CreatePrompt(PromptHeading, body, 1 ); --"Tip - Building", "In order to make sales you need to build a business. To build a business, make sure you have a city block selected and then click on the 'Build' button.", 1);
  27.     elseif a == 2 then
  28.         Interface.CreatePrompt(PromptHeading, body, 1); --"Tip - Grouping Buildings", "Building businesses on the same city block makes the area more appealing to the citizens when they decide to go shopping.", 1);
  29.     elseif a == 3 then
  30.         Interface.CreatePrompt(PromptHeading, body, 1); --"Tip - How Many Sales?", "Cycle through the topics in the 'Player Comparison Panel' until you come to 'Sales'. This will show you how many sales you have made so far.", 1);
  31.     elseif a == 4 then
  32.         Interface.CreatePrompt(PromptHeading, body, 1); --"Tip - Night Time", "If you haven't done so already, now would be a good time to think about building up an area for night shopping. The citizens will need entertainment tonight.", 1);
  33.     elseif a == 5 then
  34.         Interface.CreatePrompt(PromptHeading, body, 1); --"Tip - Day and Night", "Usually it is best to put daytime stores on one city block and nighttime entertainment on another. This allows you to get more stores open at the same time of day - increasing the chance of citizens being drawn to the area.", 1);
  35.     elseif a == 6 then
  36.         Interface.CreatePrompt(PromptHeading, body, 1); --"Tip - Efficiency", "You can check on how well your stores are doing by selecting the block that they are on, then, under 'Information', you can click on 'Efficiency'. This shows how many units the store has sold compared to how many the store can hold.", 1);
  37.     elseif a == 7 then
  38.         Interface.CreatePrompt(PromptHeading, body, 1); --"Tip - Stores are Closed", "All of your stores are now closed and we have moved on to the next day. You can check on yesterday's numbers by clicking the 'Today/Last Full Day' toggle wherever you see it in the 'Multi Purpose Panel'.", 1);
  39.     elseif a == 8 then
  40.         Interface.CreatePrompt(PromptHeading, body, 1); --"Tip - Time Flies", "Unless you want to tinker with your businesses some more, you can speed up time by holding down Shift Q. Release the keys to get back to normal time.", 1);
  41.     elseif a == 9 then
  42.         Interface.CreatePrompt(PromptHeading, body, 1); --"Tip - 6:00am Payout", "At six o'clock every morning, all of your stores are restocked, pay their land rent and utility bills. Your bank balance will drop when this happens.", 1);
  43.     end
  44.     Game.Pause()
  45. end;
  46.  
  47. ---------------------------------------------------------------------------------
  48. -- Level. Standard level event.
  49. ---------------------------------------------------------------------------------
  50. function EVENT_Level()
  51. end;
  52.  
  53. function CATCHEVENT_InterfacePromptDismiss() -- takes the current hour as an argument
  54.     Game.Unpause()
  55. end;
  56.